package com.qianyu.project.web.controller.base;

import com.qianyu.project.service.ISystemRoleService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author mfy
 * @desc
 */
@RestController
@RequestMapping("roles")
public class SystemRoleController {

    @Autowired
    private ISystemRoleService iSystemRoleService;

    @GetMapping
    public Result list(){
        return ResultTool.success(iSystemRoleService.list2());
    }
}
